﻿using CommunityToolkit.Mvvm.ComponentModel;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace UI.Class
{
    public partial class SimulationTestData : ObservableObject
    {
        [ObservableProperty]
        private List<DateAndOthers> _DataAndOthers;
        public SimulationTestData() {
            DataAndOthers = new List<DateAndOthers>();

            DataAndOthers.Add(new DateAndOthers() { Date = new DateTime(2023, 11, 21, 16, 3, 12), Data1 = 121, Data2 = 82, Data3 = 93, Data4 = 94 });
            DataAndOthers.Add(new DateAndOthers() { Date = new DateTime(2023, 11, 21, 16, 4, 12), Data1 = 12, Data2 = 82, Data3 = 73, Data4 = 04 });
            DataAndOthers.Add(new DateAndOthers() { Date = new DateTime(2023, 11, 21, 16, 5, 12), Data1 = 121, Data2 = 27, Data3 = 73, Data4 = 84 });
            DataAndOthers.Add(new DateAndOthers() { Date = new DateTime(2023, 11, 21, 16, 6, 12), Data1 = 121, Data2 = 26, Data3 = 63, Data4 = 94 });
            DataAndOthers.Add(new DateAndOthers() { Date = new DateTime(2023, 11, 21, 16, 7, 12), Data1 = 121, Data2 = 52, Data3 = 63, Data4 = 47 });
            DataAndOthers.Add(new DateAndOthers() { Date = new DateTime(2023, 11, 21, 16, 8, 12), Data1 = 21, Data2 = 24, Data3 = 37, Data4 = 45 });
            DataAndOthers.Add(new DateAndOthers() { Date = new DateTime(2023, 11, 21, 16, 9, 12), Data1 = 41, Data2 = 32, Data3 = 38, Data4 = 64 });


            for (int i = 0; i < 100; i++)
            {

                DataAndOthers.Add(new DateAndOthers() { Date = new DateTime(2023, 11, 21, 16, 9, 12), Data1 = 2000 + i, Data2 = 32, Data3 = 38, Data4 = 64 });
            }
        } 
    }

    public partial class DateAndOthers : ObservableObject
    {
        [ObservableProperty]
        private DateTime _Date;

        [ObservableProperty]
        private double _Data1;
        [ObservableProperty]
        private double _Data2;
        [ObservableProperty]
        private double _Data3;
        [ObservableProperty]
        private double _Data4;

        public DateAndOthers()
        {

        }
    }
}
